package com.markus.code.exam.bianlifeng;

import java.util.HashMap;
import java.util.HashSet;
import java.util.Scanner;

/**
 * Author:markusZhang
 * Date:Create in 2020/9/18 17:10
 * todo:
 */
public class Main1 {
    public static class ListNode{
        String val;
        ListNode next;
        public ListNode(String val){
            this.val = val;
        }
    }

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while(scanner.hasNext()){
            int n = scanner.nextInt();
            for (int i=0;i<n;i++){
                String str = scanner.next();
                String[] split = str.split("->");
            }
        }
    }
}
